<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/11/9
  Time: 8:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"  errorPage="/error/500.jsp" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>内置对象</h2>
javax.servlet.http.HttpServletResponse response <br>

<%--四大作用域  --%>
final javax.servlet.jsp.PageContext pageContext;<br>
avax.servlet.http.HttpServletRequest request<br>
javax.servlet.http.HttpSession session = null;<br>
final javax.servlet.ServletContext application;<br>

final javax.servlet.ServletConfig config;<br>
javax.servlet.jsp.JspWriter out = null;<br>
final java.lang.Object page = this;<br>
<%--处理异常的类 ，默认有--%>
java.lang.Exception exception<br>


<hr>
从作用域获取值
pageContext.getAttribute("name"): <%=pageContext.getAttribute("name")%><br>
request.getAttribute("name"): <%=request.getAttribute("name")%><br>
session.getAttribute("name"): <%=session.getAttribute("name")%><br>
application.getAttribute("name"): <%=application.getAttribute("name")%><br>



<%--<%--%>
<%--    int num = 0/ 0 ;--%>
<%--%>--%>
</body>
</html>
